package com.base.system.mybatisPlus.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户密码等授权信息表
 * </p>
 *
 * @author 木木
 * @since 2020-04-19
 */
@Data
  @EqualsAndHashCode(callSuper = false)
  @Accessors(chain = true)
@TableName("user_token")
public class MybatisUserToken extends Model<MybatisUserToken> {

    private static final long serialVersionUID=1L;

      /**
     * 主键，自动生成
     */
        @TableId(value = "id", type = IdType.AUTO)
      private Long id;

    private String createBy;

    private LocalDateTime createTime;

    private LocalDateTime lastUpateTime;

    private String updateBy;

      /**
     * 密码
     */
      private String password;

      /**
     * 关联用户id
     */
      private Long userId;


    @Override
    protected Serializable pkVal() {
          return this.id;
      }

}
